﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace MazeRaider
{
    abstract class BaseThread
    {
        private Thread _thread;

        protected BaseThread() { _thread = new Thread(new ThreadStart(this.Run)); }

        public void Start() { _thread.Start(); }
        public void Join() { _thread.Join(); }
        public bool IsAlive { get { return _thread.IsAlive; } }

        public abstract void Run();
        public abstract void Stop();
    }

}
